package com.mytest.provider.es.clients;

import com.myrest.provider.poi.work.entities.user.NickName;
import com.myrest.provider.poi.work.entities.user.SysUser;
import com.myrest.provider.poi.work.entities.user.nickAndSex;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Map;

//import org.springframework.cloud.netflix.feign.FeignClient;
//import org.springframework.cloud.netflix.feign.FeignClient;

/**
 * @Author: llq
 * @Date: 2020/4/1
 */
@FeignClient(value = "provider-service")
public interface userFen {

    @GetMapping("/user/select")
    SysUser selectUser(@RequestParam Map<String, Object> param);

    @PostMapping("/user/insert")
    SysUser insertUser(@RequestParam Map<String, Object> param);

    @GetMapping("/user/selectAll")
    List<SysUser> selectUserAll(@RequestParam Map<String,Object> param);

    @GetMapping("/user/selectNick")
    NickName selectNick(@RequestParam Map<String,Object> param);

    @GetMapping("/user/selectSexByIds")
    List<Integer> selectSexByIds(@RequestParam(value = "lds") List<Long> lds);

    @GetMapping("/user/selectNickAndSexBySexId")
    List<nickAndSex> selectNickAndSexBySexId(@RequestParam(value = "id") Long id);
}

